package com.dycong.common.reflect.Reflect.fruits;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by ${dycong} on 2016/12/9.
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Apple implements fruit{

    String name;
    String color;

    public void eat(){
        System.out.println(Apple.class.getClass().getName()+"   "+name+"    "+color);
    }
    public String toString() {
        return name + ":" + color;
    }
    public void love(String name){
        System.out.println("my love "+name+" girl");
    }
}
